package com.gitee.magic.framework.base.result;

import com.gitee.magic.framework.base.constant.Message;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author start
 */
public class PageResponse<T> extends ResultResponse<T> {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Schema(description = "分页信息")
	private PageInfo pageInfo;

	public PageResponse() {
	}
	
	public PageResponse(Message msg, String logno,String name) {
		super(msg, logno,name);
	}

	public PageInfo getPageInfo() {
		return pageInfo;
	}

	public void setPageInfo(PageInfo pageInfo) {
		this.pageInfo = pageInfo;
	}

//	@ApiModel(description = "分页信息,状态码为200时返回")
	public static class PageInfo {

		@Schema(description = "总记录数", required = true)
		private int totalCount;

		public int getTotalCount() {
			return totalCount;
		}

		public void setTotalCount(int totalCount) {
			this.totalCount = totalCount;
		}

	}

}
